home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / AIncludes / VideoEqu.a < prev   
Encoding:
Text File  |  1989-10-13  |  4.3 KB  |  132 lines  |  [TEXT/MPS ]

  1. ; Version: 1.03
  2. ; Created: Monday, January 9, 1989 at 6:31:25 PM
  3. ;
  4. ; File: VideoEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1986-1988
  8. ; All Rights Reserved
  9. ;
  10. ;--------------------------------------------------------------------
  11.  
  12. ;
  13. ; Video sResource parameter Id's
  14. ;
  15.  
  16. mBaseOffset     EQU         1                        ;Id of mBaseOffset.
  17. mRowBytes        EQU         2
  18. mBounds         EQU         3
  19. mVersion        EQU         4
  20. mHRes            EQU         5
  21. mVRes            EQU         6
  22. mPixelType        EQU         7
  23. mPixelSize        EQU         8
  24. mCmpCount        EQU         9
  25. mCmpSize        EQU         10
  26. mPlaneBytes     EQU         11
  27. ;* mTable EQU 12
  28. ;* mPageCnt EQU 13
  29. mVertRefRate    EQU         14
  30.  
  31.  
  32. mVidParams        EQU         1                        ;Video parameter block id.
  33. mTable            EQU         2                        ;Offset to the table.
  34. mPageCnt        EQU         3                        ;Number of pages
  35. mDevType        EQU         4                        ;Device Type
  36.  
  37.  
  38. ;
  39. ; Video sResource List Id's
  40. ;
  41.  
  42. oneBitMode        EQU         128                     ;Id of OneBitMode Parameter list.
  43. twoBitMode        EQU         129                     ;Id of TwoBitMode Parameter list.
  44. fourBitMode     EQU         130                     ;Id of FourBitMode Parameter list.
  45. eightBitMode    EQU         131                     ;Id of EightBitMode Parameter list.
  46.  
  47. ; Control Codes
  48.  
  49. cscReset        EQU         0
  50. cscSetMode        EQU         2
  51. cscSetEntries    EQU         3
  52. cscGrayPage     EQU         5
  53. cscSetGray        EQU         6
  54.  
  55. ; Status Codes
  56.  
  57. cscGetMode        EQU         2
  58. cscGetEntries    EQU         3
  59. cscGetPageCnt    EQU         4
  60. cscGetPageBase    EQU         5
  61.  
  62.  
  63. csGTable        EQU         0                        ; [long] pointer to gamma table
  64. csTable         EQU         0                        ; [long] pointer to CLUT
  65. csStart         EQU         4                        ; [word] entry start number
  66. csCount         EQU         6                        ; [word] entry count to change
  67.  
  68. ;
  69. ; mVidParams block
  70. ;
  71.  
  72. VPBlock         RECORD        0                        ;Video Parameters block.
  73. vpBaseOffset    DS.L        1                        ;Offset to page zero of video RAM (From minorBaseOS).
  74. vpRowBytes        DS.W        1                        ;Width of each row of video memory.
  75. vpBounds        DS.W        4                        ;BoundsRect for the video display (gives dimensions).
  76. vpVersion        DS.W        1                        ;PixelMap version number.
  77. vpPackType        DS.W        1                        ;
  78. vpPackSize        DS.L        1                        ;
  79. vpHRes            DS.L        1                        ;Horizontal resolution of the device (pixels per inch).
  80. vpVRes            DS.L        1                        ;Vertical resolution of the device (pixels per inch).
  81. vpPixelType     DS.W        1                        ;Defines the pixel type.
  82. vpPixelSize     DS.W        1                        ;Number of bits in pixel.
  83. vpCmpCount        DS.W        1                        ;Number of components in pixel.
  84. vpCmpSize        DS.W        1                        ;Number of bits per component
  85. vpPlaneBytes    DS.L        1                        ;Offset from one plane to the next.
  86. vpBlockSize     EQU         *
  87.                 ENDR
  88.  
  89.  
  90.  
  91. VDSetEntryRecord  RECORD    0
  92. csTable         DS.L        1                        ; ^ColorSpec - (long) Pointer to an array of color specs
  93. csStart         DS.W        1                        ; INTEGER - (word) Which spec in array to start with, or -1
  94. csCount         DS.W        1                        ; INTEGER - (word) Number of color spec entries to set
  95.                 ENDR
  96.  
  97. VDPageInfo        RECORD        0
  98. csMode            DS.W        1                        ; INTEGER - (word) mode within device
  99. csData            DS.L        1                        ; LONGINT - (long) data supplied by driver
  100. csPage            DS.W        1                        ; INTEGER - (word) page to switch in
  101. csBaseAddr        DS.L        1                        ; Ptr - (long) base address of page 
  102.                 ENDR
  103.  
  104. VDSizeInfo        RECORD        0
  105. csHSize         DS.W        1                        ; INTEGER - (word) desired/returned h size
  106. csHPos            DS.W        1                        ; INTEGER - (word) desired/returned h position
  107. csVSize         DS.W        1                        ; INTEGER - (word) desired/returned v size
  108. csVPos            DS.W        1                        ; INTEGER - (word) desired/returned v position
  109.                 ENDR
  110.  
  111. VDSettings        RECORD        0
  112. csParamCnt        DS.W        1                        ; INTEGER - (word) number of params 
  113. csBrightMax     DS.W        1                        ; INTEGER - (word) max brightness
  114. csBrightDef     DS.W        1                        ; INTEGER - (word) default brightness
  115. csBrightVal     DS.W        1                        ; INTEGER - (word) current brightness
  116. csCntrstMax     DS.W        1                        ; INTEGER - (word) max contrast 
  117. csCntrstDef     DS.W        1                        ; INTEGER - (word) default contrast 
  118. csCntrstVal     DS.W        1                        ; INTEGER - (word) current contrast 
  119. csTintMax        DS.W        1                        ; INTEGER - (word) max tint 
  120. csTintDef        DS.W        1                        ; INTEGER - (word) default tint 
  121. csTintVal        DS.W        1                        ; INTEGER - (word) current tint 
  122. csHueMax        DS.W        1                        ; INTEGER - (word) max hue
  123. csHueDef        DS.W        1                        ; INTEGER - (word) default hue
  124. csHueVal        DS.W        1                        ; INTEGER - (word) current hue
  125. csHorizDef        DS.W        1                        ; INTEGER - (word) default horizontal
  126. csHorizVal        DS.W        1                        ; INTEGER - (word) current horizontal
  127. csHorizMax        DS.W        1                        ; INTEGER - (word) max horizontal
  128. csVertDef        DS.W        1                        ; INTEGER - (word) default vertical 
  129. csVertVal        DS.W        1                        ; INTEGER - (word) current vertical 
  130. csVertMax        DS.W        1                        ; INTEGER - (word) max vertical 
  131.                 ENDR
  132.